package com.graduation.community_manager.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户水电费表
 *
 * @author wdh
 */
@Data
@TableName("cm_electricity_water")
public class CmEleWaterEntity {
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 电费
     */
    private BigDecimal electricityBalance;
    /**
     * 电费支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date electricityPayTime;
    /**
     * 水费
     */
    private BigDecimal waterBalance;
    /**
     * 水费支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date waterPayTime;
}
